package threadTesting;

import util.Vector;

/**
 * Created by IntelliJ IDEA.
 * User: s32465
 * Date: 09.11.2010
 * Time: 18:43:24
 * To change this template use File | Settings | File Templates.
 */
public class ReadVectorThread extends Thread{
    private Vector vector;
    public ReadVectorThread(Vector vector){
        this.vector = vector;
    }

    public void run(){
        for (int i = 0; i < this.vector.length(); i++) {
            float value =this.vector.getElement(i);
            System.out.println("Read: "+ value+" from position "+ i);
             
        }

    }
}